package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yupi.springbootinit.model.dto.court.CourtQueryRequest;
import com.yupi.springbootinit.model.dto.court.UpdataCourtRequest;
import com.yupi.springbootinit.model.dto.user.UserQueryRequest;
import com.yupi.springbootinit.model.entity.Court;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.entity.User;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【court(场馆信息表)】的数据库操作Service
* @createDate 2024-04-20 15:29:17
*/
public interface CourtService extends IService<Court> {

    Boolean addCourt(String courtName, String courtProvince, String courtCity, String courtAddress, String phoneNumber, Integer courtArea, String courtMain, String businessSatus);

    List<Court> getAllCourt();

    boolean updataCourt(UpdataCourtRequest updataCourtRequest);

    boolean deleteCourt(Long id);

    QueryWrapper<Court> getQueryWrapper(CourtQueryRequest courtQueryRequest);
}

